package com.ss.android.common.location;

import android.content.Context;
import android.content.SharedPreferences;

public final class ServerLocationChangeHelper {
    public interface a {
        void a(int arg1, String arg2, String arg3);
    }

    public final SharedPreferences a;
    public Context b;
    public int c;
    public int d;
    public long e;
    public long f;

    public ServerLocationChangeHelper(Context arg7) {
        this.c = 7200;
        this.d = 7200;
        this.b = arg7;
        this.a = this.b.getSharedPreferences("ss_location", 0);
        this.f = this.a.getLong("use_city_show_last_time", 0);
        this.e = this.a.getLong("locale_setting_show_last_time", 0);
        this.c = this.a.getInt("dialog_show_interval", 7200);
        this.d = this.a.getInt("dialog_show_interval", 7200);
    }

    public final void a(String arg3) {
        this.a.edit().putString("last_alert_id", arg3).commit();
    }

    public final void a(int arg3, long arg4) {
        SharedPreferences.Editor v0 = this.a.edit();
        v0.putInt("last_alert_command", arg3);
        v0.putLong("last_alert_time", arg4);
        v0.commit();
    }

    public final String a() {
        return this.a.getString("last_alert_id", "");
    }

    public final void b(int arg3, long arg4) {
        SharedPreferences.Editor v0 = this.a.edit();
        v0.putInt("last_op_command", arg3);
        v0.putLong("last_op_time", arg4);
        v0.commit();
    }
}

